﻿<UserControl x:Class="OnlineVideos.ShowDescription"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:LART="clr-namespace:LART.Controls;assembly=LART.Controls.ScrollableTextBlock"
     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
   xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
   xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
   xmlns:inputtoolkit="clr-namespace:MarkHeath.StarRating;assembly=MarkHeath.StarRating"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">

    <Grid x:Name="LayoutRoot">
            <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="115"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="190"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Image Grid.Column="0" Grid.Row="0" x:Name="imgMovie" VerticalAlignment="Top" Width="100" Height="170" />
                <StackPanel Grid.Column="1" Grid.Row="0" Margin="15,0,0,0" Height="190">
                    <TextBlock x:Name="tblkTitle" FontSize="24" FontWeight="Bold" TextWrapping="Wrap" Foreground="White" Margin="10,0,0,0"></TextBlock>
                    <StackPanel x:Name="Ratestack" Margin="10,10,0,0" Orientation="Horizontal">
                        <inputtoolkit:StarRatingControl Name="rate" Rating="{Binding Rating}"  Tag="{Binding MovieId}"  NumberOfStars="5" Height="25" Width="139" MouseLeftButtonDown="rate_MouseLeftButtonDown" ></inputtoolkit:StarRatingControl>
                        <TextBlock x:Name="tblRelease" FontSize="22" Margin="70,0,0,0" Foreground="White"></TextBlock>
                    </StackPanel>
                    <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
                        <Image Width="40" Height="40" VerticalAlignment="Center"  x:Name="imgpin" Margin="20,0,0,0" MouseLeftButtonDown="imgpin_MouseLeftButtonDown"></Image>
                        <Image Margin="60,0,90,0" Source="/Images/sharemovie.png" Width="40" Height="40" VerticalAlignment="Center" x:Name="imgShare" MouseLeftButtonDown="imgShare_MouseLeftButtonDown"></Image>
                        <Image Width="40" Height="40" VerticalAlignment="Center" Margin="-20,0,0,0" x:Name="imgFav" MouseLeftButtonDown="imgFav_MouseLeftButtonDown"></Image>
                        <Image Width="70" Height="70" Visibility="Collapsed" VerticalAlignment="Center" Source="/Images/StartSpeech.png" Margin="20,0,0,0" x:Name="imgSpeech" MouseLeftButtonDown="imgSpeech_MouseLeftButtonDown"></Image>

                    </StackPanel>
                </StackPanel>
            </Grid>
            <LART:ScrollableTextBlock HorizontalAlignment="Left" x:Name="tblkDescription" VerticalAlignment="Bottom" Width="457" MinHeight="400" Foreground="White" Grid.Row="1" Margin="0,10,0,10" />
            <TextBlock   Visibility="Collapsed" x:Name="tblkNoDescription"  FontSize="26" Margin="60,100,0,0"  Foreground="White" Grid.Row="1"  ></TextBlock>
            </Grid>
    </Grid>
    
</UserControl>
   